package cfca.seal.front.service.ws.bean;

import cfca.seal.util.StringUtil;

public class AutoGenerateImageBean
{
  private String imageName;
  private String imageName2;
  private String imageWidth;
  private String imageHeight;
  private String imageShape;
  private String color;
  private String fontSize;

  public String getImageName()
  {
    return this.imageName;
  }

  public void setImageName(String imageName) {
    this.imageName = imageName;
  }

  public String getImageName2() {
    return this.imageName2;
  }

  public void setImageName2(String imageName2) {
    this.imageName2 = imageName2;
  }

  public String getImageWidth() {
    return this.imageWidth;
  }

  public void setImageWidth(String imageWidth) {
    this.imageWidth = imageWidth;
  }

  public String getImageHeight() {
    return this.imageHeight;
  }

  public void setImageHeight(String imageHeight) {
    this.imageHeight = imageHeight;
  }

  public String getImageShape() {
    return this.imageShape;
  }

  public void setImageShape(String imageShape) {
    this.imageShape = imageShape;
  }

  public String getColor() {
    return this.color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public String getFontSize() {
    return this.fontSize;
  }

  public void setFontSize(String fontSize) {
    this.fontSize = fontSize;
  }

  public AutoGenerateImageBean(String xml) {
    this.imageName = StringUtil.getNodeText(xml, "ImageName");
    this.imageName2 = StringUtil.getNodeText(xml, "ImageName2");
    this.imageWidth = StringUtil.getNodeText(xml, "ImageWidth");
    this.imageWidth = (StringUtil.isEmpty(this.imageWidth) ? "200" : this.imageWidth);
    this.imageHeight = StringUtil.getNodeText(xml, "ImageHeight");
    this.imageHeight = (StringUtil.isEmpty(this.imageHeight) ? "200" : this.imageHeight);
    this.imageShape = StringUtil.getNodeText(xml, "ImageShape");
    this.color = StringUtil.getNodeText(xml, "Color");
    this.color = (StringUtil.isEmpty(this.color) ? "FF0000" : this.color);
    this.fontSize = StringUtil.getNodeText(xml, "FontSize");
    this.fontSize = (StringUtil.isEmpty(this.fontSize) ? "100" : this.fontSize);
  }
}